package cn.edu.lingnan.mapper;

import cn.edu.lingnan.domain.Dto.FindStudentDto;
import cn.edu.lingnan.domain.Dto.UpdateStudentDto;
import cn.edu.lingnan.domain.Vo.StudentVo;
import cn.edu.lingnan.domain.pojo.Teacher;
import cn.edu.lingnan.domain.pojo.academy;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper {
    Page<StudentVo> list(FindStudentDto findStudentDto);

    Page<Teacher> listTeacher(FindStudentDto findStudentDto);

    void deleteStudent(Integer userId);

    List<academy> findAcademy();

    void updateStudent(UpdateStudentDto updateStudentDto);

    StudentVo findStudentById(Integer userId);

    void freezeOrUnfreeze (@Param("userId") Integer userId, @Param("status") Integer status);

    Page<StudentVo> listAccount(FindStudentDto findStudentDto);
}
